package com.qijian.maindata.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.maindata.service.IFactoryService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.regexp.RE;

import java.math.BigDecimal;

@Data
public class CostCollectionReportVo {


    // 异常归类
    private String exceptionLabel;

    // 异常类型
    private String exceptionType;


    // 异常开工令数量
    private String exceptionCnt;

    // 超预算金额
    private BigDecimal gapAmountTotal;


    public BigDecimal getGapAmountTotal() {

        if ("1".equals(this.exceptionType)) {
            return gapAmountTotal;
        }
        if ("2".equals(this.exceptionType)) {
            return gapAmountTotal.setScale(0);
        }
        return gapAmountTotal;
    }
}
